home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 3 / Precision Software Applications Silver Collection Volume Three (PSM) (1993).iso / music2 / tuning.arj / TUNING.ASC
Text File  |  1992-12-22  |  3KB  |  77 lines

  1. This note describes how you can use your computer as an accurate
  2. audio-tone sweep generator to tune musical instruments and check
  3. the frequency of a digital shortwave receiver.
  4.     BACKGROUND
  5. With BASIC you can generate an audio tone as follows:
  6. SOUND,1000,50. That will give a 1,000-Hz tone lasting a few
  7. seconds.
  8.     Marc Cormier wrote the following BASIC program:
  9. 10 cls
  10. 20 KEY(11) ON: KEY(14) ON: KEY(1) ON
  11. 30 INPUT "Frequency in Hz";X
  12. 40 INPUT "Increments in Hz";Y
  13. 50 PRINT "To end press F1"
  14. 60 IF X<37 OR X>30000 THEN PRINT "Frequency limit": END
  15. 70 SOUND X,1 : LOCATE 10,1 : PRINT X
  16. 80 ON KEY(11) GOSUB 120
  17. 90 ON KEY(14) GOSUB 140
  18. 100 ON KEY(1) GOSUB 160
  19. 110 GOTO 60
  20. 120 X=X+Y
  21. 130 RETURN 60
  22. 140 X=X-Y
  23. 150 RETURN 60
  24. 160 END
  25.     To invoke this program from the DOS prompt, enter BASIC
  26. C:\UTIL\TONEGEN. For BASIC substitute the name of your BASIC
  27. version. For UTIL substitute the subdirectory where you keep
  28. utilities. 
  29.     Enter the starting frequencies as prompted. Then use the up
  30. and down keys to sweep up and down by the increment you
  31. specified.
  32.     Hit F1 when done, F2 to run the program again, or enter
  33. SYSTEM to exit to DOS.
  34. ACCURACY
  35.     National Institute of Technology station WWV broadcasts tones
  36. of 500, 600, and occasionally 440 Hz (middle A). Its frequencies are
  37. 2.5, 5, 10, 15, and 20 MHz. This allows to verify your tone
  38. generator.
  39. CHECKING A SHORTWAVE SET
  40.     Here is how I check the frequency of my receiver, which tunes
  41. in 100-Hz steps:
  42.     Go to upper sideband.
  43.     Tune 300 Hz below a WWV signal when the station is sending
  44. second ticks only. If my receiver were perfect, I would get a 300-
  45. Hz tone.
  46.     Produce a 300-Hz tone on the computer. Sweep up and down
  47. until the radio and the computer produce the same tone.
  48.     With my radio the tones are the same when my computer
  49. produces a 260-Hz tone. That means the frequency readout on my
  50. radio is 40 Hz high.
  51. CHECKING A TRANSMITTER
  52.     I measured the frequency of my CB as follows:
  53.     Select Channel 13, which is 27,115 MHz.
  54.     Tune shortwave set to 27,114.7 MHz.
  55.     Desensitize shortwave set by removing external antenna and
  56. cranking RF gain down.
  57.     Depress microphone button.
  58.     Sweep generator until the two tones are identical.
  59.     With my CB that happens when the tones are both 290 Hz. That
  60. would suggest my CB is 10 Hz high. But my shortwave set is 40 Hz
  61. high. Thus my CB is actually 30 Hz low.
  62. TUNING A STRING INSTRUMENT
  63.     To tune a string instrument, you need to know the nominal
  64. frequencies.
  65. BRACKETING
  66.     The methods described use zero-beating. When two slightly
  67. tones are present, they produce a third one called a heterodyne.
  68. One easy way to determine zero beat is to tune the generator to
  69. one side of the signal until a wobble of, say, five Hz results, and
  70. then to the other side for the same wobble. You then take the
  71. average of the two tones.
  72. CREDIT
  73.     Marc Cormier deserves 99% of the credit for this utility. He
  74. wrote the program in response to my query on a bulletin board.
  75. ...
  76.     Comments invited.
  77.     Sander Schimmelpenninck